package cglgu.trellis.chado.das2.modelimpl;

/*
 * $Id: ChadoSequence.java 191 2011-03-27 00:38:22Z sundaram.georgetown@gmail.com $
 * $Author: sundaram.georgetown@gmail.com $
 * $Date: 2011-03-27 00:38:22 +0000 (Sun, 27 Mar 2011) $
 * $Rev: 191 $
 * $HeadURL: http://genomancer.googlecode.com/svn/branches/gu-dev-branch/tengcha/src/cglgu/trellis/chado/das2/modelimpl/ChadoSequence.java $
 */

import genomancer.trellis.das2.model.Das2SegmentI;
import genomancer.vine.das2.client.modelimpl.Das2Segment;
import cglgu.trellis.chado.das2.cglgu.Chromosome;
import java.net.URI;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ChadoSequence extends Das2Segment implements Das2SegmentI  {
	String filename;
	ChadoVersion chado_version;
	Chromosome chromosome;

	ChadoSequence(URI base_uri, ChadoVersion chado_version, Chromosome chromosome) throws SQLException {
		
		String uniquename = chromosome.getUniquename();
		int seqlen = chromosome.getSeqlen();
		
		super(base_uri,                // base_uri
				uniquename.replace(' ', '_'),  // local_uri_string
				uniquename,                    // title
				null,                          // reference
				seqlen,                        // length
				null );                        // info_url

		this.chado_version = chado_version;
	}

	public String getName()  { return this.getLocalURIString(); }
}